<?php
include("config.php");

if(empty($_POST['token'])){
	echo json_res(true,'paramError','提交数据不全!');
	return;
}

//////////////////////////////////////////////////////////////////////////////////////
//获取姓名学号等
$snoopy1 = new Snoopy;
//模拟HEADER
$snoopy1->cookies['ASP.NET_SessionId'] = $_SESSION["ASP_NET_SessionId"];
//获取分析表单
$snoopy1->fetch($personurl);
$res1 = $snoopy1->results;

//超时返回
if ($snoopy1->status != '200' || $snoopy1->timed_out) {
	echo json_res(true,'systemTimeOut',"页面获取超时！");
	return;
}
$snoopy_results = $snoopy1->results;

if(stripos($snoopy_results,"action=\"login.aspx\"")){
	echo json_res(true,'tokenTimeOut',"token失效");
	return;
}

echo json_res(false,true,"验证成功");
return;
